import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { codeInspectorPlugin } from 'code-inspector-plugin';
import { resolve } from 'path'

// https://vite.dev/config/
export default defineConfig({
  base: './',  // 设置为相对路径，确保在后端集成时资源文件能正确加载
  plugins: [vue(), codeInspectorPlugin({bundler: 'vite',showSwitch: true})],
  resolve: {
    alias: {
      '@': resolve(__dirname, 'src')
    }
  }
})
